PV-on-HVM: Define system_state as 1 (SYSTEM_RUNNING) on kernels prior
authorIan Campbell <ian.campbell@xensource.com>
Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)
committerIan Campbell <ian.campbell@xensource.com>
Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)
to 2.6.7. These kernels did not export the system_state variable to
modules.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
unmodified_drivers/linux-2.6/platform-pci/platform-compat.c

index 61ae10dba15f64ee99261c3634771af616e24edc..c6fa5b81da8d91009b0c4484d3cb05d21e0b3055 100644 (file)
@@ -1,4 +1,11 @@
 #include <linux/config.h>
 #include <linux/version.h>
 
+#include <linux/module.h>
+
 #include <xen/platform-compat.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7)
+static int system_state = 1;
+EXPORT_SYMBOL(system_state);
+#endif